import { NestFactory } from '@nestjs/core';
import * as serveStatic from 'serve-static';
import { AppModule } from './app.module';
import * as Config from './app.config';
async function bootstrap() {
  console.log(Config);
  const app = await NestFactory.create(AppModule);
  //app.use(serveStatic("/", {"index": ["index.html","default.html", "default.htm"]}));
  app.use('/files', serveStatic(Config.filesPath));
  await app.listen(Config.port);
}
//bootstrap();
export {bootstrap,Config}